//
//  EFSJumpManager+article.m
//  EFSMobile
//
//  Created by Chuan on 12/3/15.
//  Copyright © 2015 Elephants Financial Service. All rights reserved.
//

#import "EFSJumpManager+article.h"
#import "EFSArticleViewController.h"

@implementation EFSJumpManager (article)

+ (void)jumparticle:(NSArray *)data
{
    NSDictionary *info = [data firstObject];
    if (info == nil || info == (id)[NSNull null]) {
        return;
    }
    UIViewController *viewController = [data lastObject];
    EFSArticleViewController *articleViewController = [EFSArticleViewController new];
    articleViewController.articleInfo = info;
    [viewController.navigationController pushViewController:articleViewController animated:YES];
    articleViewController.navigationController.navigationBar.translucent = NO;
    UIFont *font = [UIFont systemFontOfSize:25];
    
    NSMutableDictionary *dict=[NSMutableDictionary dictionary];
    [dict setObject:font forKey:NSFontAttributeName];
    
    UINavigationBar *bar = [UINavigationBar appearance];
    bar.titleTextAttributes = dict;
}

@end
